package cn.jkgly.websocket.entity;

import lombok.Data;

import javax.websocket.Session;
import java.io.Serializable;

/**
 * @Author NieZhiLiang
 * @Email nzlsgg@163.com
 * @Date 2019/3/1 上午9:08
 */
@Data
public class Client implements Serializable {


    private   static final long serialVersionUID = 8957107006902627635L;

    private   String userName;

    private   Session session;

    private   String type;

    public Client(String userName, Session session, String type) {

        this.userName = userName;
        this.session = session;
        this.type = type;
    }

    public Client(String userName, Session session) {
        this.userName = userName;
        this.session = session;
    }
}
